home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / os2 / adaptor.zip / ADAPT.ZIP / adaptor / src / include / idents.h < prev    next >
Text File  |  1994-01-03  |  2KB  |  74 lines

  1. # ifndef yyIdents
  2. # define yyIdents
  3.  
  4. /* $Id: Idents.h,v 1.7 1992/02/18 12:52:30 grosch rel $ */
  5.  
  6. /* $Log: Idents.h,v $
  7.  * Revision 1.7  1992/02/18  12:52:30  grosch
  8.  * changed tString from unsigned char * to char *
  9.  *
  10.  * Revision 1.6  1991/11/21  14:28:16  grosch
  11.  * new version of RCS on SPARC
  12.  *
  13.  * Revision 1.5  91/09/18  15:18:47  grosch
  14.  * added procedure GetStringRef
  15.  *
  16.  * Revision 1.4  91/07/17  17:23:08  grosch
  17.  * introduced ARGS trick for ANSI compatibility
  18.  *
  19.  * Revision 1.3  91/01/21  12:13:21  grosch
  20.  * some performance improvements
  21.  *
  22.  * Revision 1.2  90/07/04  14:33:56  grosch
  23.  * introduced conditional include
  24.  *
  25.  * Revision 1.1  89/12/08  17:22:12  grosch
  26.  * added variable NoIdent
  27.  *
  28.  * Revision 1.0  88/10/04  11:44:39  grosch
  29.  * Initial revision
  30.  *
  31.  */
  32.  
  33. /* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
  34.  
  35. # include <stdio.h>
  36. # include "ratc.h"
  37. # include "StringMe.h"
  38.  
  39. # ifdef __STDC__
  40. # define ARGS(parameters)    parameters
  41. # else
  42. # define ARGS(parameters)    ()
  43. # endif
  44.  
  45. typedef cardinal    tIdent;
  46.  
  47. extern    tIdent    NoIdent;
  48.  
  49. extern    tIdent    MakeIdent    ARGS((register char * string, register cardinal length));
  50.    /* the string (of length) is mapped to a unique identifier    */
  51.    /* (an integer) which is returned                */
  52.  
  53. extern    void    GetString    ARGS((tIdent ident, char * string));
  54.    /* returns the string whose identifier is 'ident'        */
  55.  
  56. extern    tStringRef GetStringRef ARGS((tIdent ident));
  57.    /* returns a reference to the string identified by 'ident'    */
  58.  
  59. extern    tIdent    MaxIdent    ();
  60.    /* returns the currently maximal identifier            */
  61.  
  62. extern    void    WriteIdent    ARGS((FILE * file, tIdent ident));
  63.    /* the string encoded by the identifier 'ident' is        */
  64.    /* printed on the file                    */
  65.  
  66. extern    void    WriteIdents    ();
  67.    /* the contents of the identifier table is printed        */
  68.    /* on the standard output                    */
  69.  
  70. extern    void    WriteHashTable    ();
  71. extern    void    InitIdents    ();
  72.  
  73. # endif
  74.